#include "net_pthread.h"

net_pthread::net_pthread(int out_time)
{
    this->out_time = out_time;
    nowTime = 0;
    qDebug()<<"你好";
}

void net_pthread::run()
{
    for (;;) {
        nowTime++;
        qDebug("超时检测");
        /* 超时检测 */
        if (nowTime > this->out_time || succeed_flag == true) {
            //this->create_fail();
            qDebug("exit succeed");
            return ;
        }
        this->trigger_main();
        sleep(1);
    }
}
